//
//  CHSContentLayer.m
//  ZXAnimationUtil_Example
//
//  Created by 朱新明 on 2023/9/11.
//  Copyright © 2023 simon. All rights reserved.
//

#import "CHSContentLayer.h"

@implementation CHSContentLayer

//设置contents方式提供位图
- (void)display{
    
    self.contents = (__bridge id _Nullable)(([UIImage imageNamed:@"keyframing_2"]).CGImage);
}

///图形上下文方式：在位图图像上下文提供位图
- (void)drawInContext:(CGContextRef)ctx{
    
    UIImage *image = [UIImage imageNamed:@"keyframing_2"];
    [image drawInRect:CGRectMake(0, 0, 100, 100)];
    UIGraphicsEndImageContext();
}

@end
